﻿
<h2>Add Product</h2>

<div class="form-group">
    <label>Name</label>
    <input class="form-control" data-bind="value: adminModel.newProduct.name" />
</div>

<div class="form-group">
    <label>Description</label>
    <input class="form-control" data-bind="value: adminModel.newProduct.description" />
</div>

<div class="form-group">
    <label>Category</label>
    <input class="form-control" data-bind="value: adminModel.newProduct.category" />
</div>

<div class="form-group">
    <label>Price</label>
    <input class="form-control" data-bind="value: adminModel.newProduct.price" />
</div>

<div class="text-center">
    <button class="btn btn-primary"
            data-bind="click: setListMode.bind($data, 'products')">
        Cancel
    </button>
    <button class="btn btn-danger" data-bind="click: createProduct">Create</button>
</div>
